@mixin removeScrollBarStyle() {
  &::-webkit-scrollbar {
    display: none;
  }

  -ms-overflow-style: none;
  overflow: -moz-scrollbars-none;
}

.codeup_search_right_cons.codeup_search_right_middleState_cons {
  padding-right: 20px;
}
.codeup_search_right_cons {
  overflow: hidden;
  padding: 12px 40px 0;
  .codeup_search_right_header {
    padding: 4px 0;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
  }
  .codeup_search_right_con {
    padding-top: 8px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    overflow: auto;
    @include removeScrollBarStyle;
    .codeup_search_right_con_list {
      .codeup_search_right_con_list_item {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 16px 10px;
        cursor: pointer;
        border-radius: 2px;
        &:hover {
          background-color: #f7f7f7;
        }
        .search_list_item_icon {
          box-shadow: 0 1px 0 0 #e5e5e5;
          border-radius: 2.5px;
          display: flex;
          align-items: center;
          justify-content: center;
          margin-right: 24px;
          background-color: #f4c329;
          .repo_name {
            font-size: 20px;
            font-weight: 500;
            color: #fff;
            text-align: center;
            overflow: hidden;
            vertical-align: bottom;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 34px;
            width: 32px;
          }
          .repo_name.mr {
            background-color: #fff;
          }
        }
        .search_list_item_title_main_con {
          display: flex;
          flex-direction: column;
          flex: auto;
          overflow: hidden;
          // max-width: 870px;
          .search_list_item_main_title {
            font-size: 16px;
            color: #262626;
            padding-bottom: 4px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            display: inline-block;
            max-width: calc(100vw - 35%);
          }
          .commit-msg-desc {
            max-height: 400px;
            overflow: hidden;
            overflow-y: auto;
            font-size: 14px;
            line-height: 20px;
            color: $gray-06 !important;
            margin: 0px 0 4px;
            padding: 0px 12px;
            border-left: 2px solid $gray-04 !important;
          }
          .search_list_item_subtitle,
          .mrDesc {
            font-size: 12px;
            color: #595959;
            padding: 2px 0;
            display: flex;
            align-items: center;
            .desc-divider {
              margin: 0 8px;
            }
            .code_name,
            .code_branch,
            .code_date {
              max-width: 30%;
              overflow: hidden;
              display: inline-block;
              text-overflow: ellipsis;
              white-space: nowrap;
            }
            .code_date {
              display: flex;
              align-items: center;
              .text-ellipsis {
                overflow: hidden;
                text-overflow: ellipsis;
              }
            }
          }
          .mrDesc {
            max-width: 100%;
            overflow: hidden;
            display: inline-block;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
        }
        .search_list_item_sub_image {
          min-width: 150px;
        }
        .search_list_item_sub_date {
          font-size: 12px;
          color: #8c8c8c;
          text-align: right;
          min-width: 250px;
        }
      }
    }
  }
  .codeup_search_right_table {
    margin-bottom: 16px;
    // border: 1px solid #e8e8e8;
    box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    // background-color: #fff;
    &:last-child {
      margin-bottom: 0px;
    }
    &_header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      // box-shadow: inset 0 0 1px 1px #e8e8e8;
      // box-shadow: inset 0 -1px 0 0 #e8e8e8;
      // border-radius: 4px 4px 0 0;
      // padding: 8px 0;
      &_left_title {
        font-size: 14px;
        color: #292929;
        display: flex;
        justify-content: center;
        align-items: center;
        .filePath {
          align-items: center;
          display: flex;
        }
        span {
          max-width: 300px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          display: inline-block;
        }
        .preview_name {
          font-size: 12px;
          color: #8b8b8b;
          display: flex;
          align-items: center;
        }
      }
      &_right_preview {
        font-size: 12px;
        color: #8b8b8b;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 5px 0;
        .preview_name {
          display: flex;
          align-items: center;
          &::after {
            position: relative;
            content: '';
            // margin: 0 16px;
            border-left: 1px solid #e8e8e8;
          }
        }
        .preview_font {
          color: #1b9aee;
          cursor: pointer;
        }
      }
    }
    &_con {
      display: flex;
      overflow-x: auto;
    }
    .file-panel-src-header {
      line-height: normal;
      padding: 3.5px 10px;
    }
    mark {
      background: #ff0;
      color: #000;
    }
    pre {
      display: block;
      overflow-x: auto;
      padding: 0;
      color: #383a42;
      background: #fff;
      border-radius: 0;
      border: none;
      margin-bottom: 0;
      white-space: pre;
      .hljs-number {
        padding-left: 6px;
        padding-right: 6px;
        color: #c0c1c3;
      }
    }
    .hljs-comment,
    .hljs-quote {
      color: #a0a2ad;
      // color: var(--color-line1-4, #a0a2ad);
      font-style: italic;
    }

    .hljs-doctag,
    .hljs-formula,
    .hljs-keyword {
      color: #9656b9;
      color: var(--color-extra-3-click, #9656b9);
    }

    .hljs-deletion,
    .hljs-name,
    .hljs-section,
    .hljs-selector-tag,
    .hljs-subst {
      color: #f77d8f;
      color: var(--color-error-3, #f77d8f);
    }

    .hljs-literal {
      color: #4f74b3;
      color: var(--color-b7-6, #4f74b3);
    }

    .hljs-addition,
    .hljs-attribute,
    .hljs-meta-string,
    .hljs-regexp,
    .hljs-string {
      color: #37a43c;
      color: var(--color-success-3, #37a43c);
    }

    .hljs-built_in,
    .hljs-class .hljs-title {
      color: #ea8312;
    }

    .hljs-attr,
    .hljs-number,
    .hljs-selector-attr,
    .hljs-selector-class,
    .hljs-selector-pseudo,
    .hljs-template-variable,
    .hljs-type,
    .hljs-variable {
      color: #ea8312;
    }

    .hljs-bullet,
    .hljs-link,
    .hljs-meta,
    .hljs-selector-id,
    .hljs-symbol,
    .hljs-title {
      color: #166ae9;
      color: var(--color-link-1, #166ae9);
    }

    .hljs-emphasis {
      font-style: italic;
    }

    .hljs-strong {
      font-weight: 700;
    }

    .hljs-link {
      text-decoration: underline;
    }
  }
  .codeup_search_right_table.Selected {
    .file-panel-normal.file-panel-src {
      box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.04);
      border: 1px solid #239ded;
    }
    .codeup_search_right_table_header_left_title span {
      max-width: 150px;
    }
  }
  .codeup_search_right_table.left_middle_table_max_width {
    .codeup_search_right_table_header_left_title span {
      max-width: 150px;
    }
  }
  .codeup_search_right_pagination {
    display: flex;
    justify-content: flex-end;
    padding: 8px 0;
  }
}

.search-result-empty-other {
  .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

.codeup_search_right_table.left_middle_table_max_width {
  .file-panel-src-header {
    padding: 10px;
    .middleState_header_title {
      font-size: 14px;
      color: #292929;
      & > span {
        height: 20px;
        line-height: 20px;
      }
    }
  }
}
.search_grammar_empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  .search_grammar_empty_header {
    flex-direction: column;
    align-items: center;
    display: flex;
    .header_title {
      height: 28px;
      width: 160px;
      font-weight: 700;
      font-size: 20px;
      color: #262626;
      text-align: center;
    }
    .header_msg {
      height: 22px;
      width: 600px;
      font-weight: 500;
      font-size: 14px;
      color: #8c8c8c;
      text-align: center;
      line-height: 22px;
    }
    .header_case {
      padding-bottom: 12px;
      border-bottom: 1px solid #dbdbdb;
      font-family: Menlo-Bold;
      font-size: 14px;
      line-height: 22px;
      margin-top: 22px;
      > span {
        display: inline-block;
      }
      .search_icon {
        color: #a6a6a6;
        height: 19.2px;
        width: 19.2px;
        margin-right: 15px;
      }
      .case_1 {
        width: 60px;
        color: #404040;
      }
      .case_2 {
        width: 32px;
        color: #fa8e1a;
      }
      .case_3 {
        width: 46px;
        color: #1b9aee;
      }
      .case_4 {
        width: 68px;
        color: #404040;
        margin-right: 32px;
      }
    }
  }
  .search_grammar_empty_footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    height: 240px;
    width: 760px;
    background-color: #f0f9ff;
    border-radius: 8px;
    .mar_right_9 {
      margin-right: 9px;
    }
    .footer_case {
      padding-bottom: 11px;
      font-family: Menlo-Bold;
      font-size: 16px;
      letter-spacing: 0;
      line-height: 15px;
      .color_1 {
        color: #292929;
      }
      .color_2 {
        color: #fa8e1a;
      }
      .color_3 {
        color: #1b9aee;
      }
      .color_4 {
        color: #292929;
      }
    }
    .linear_block {
      > span {
        border-bottom: 2px solid #1b9aee;
        height: 36px;
        transform: scaleY(-1);
        background-image: linear-gradient(
          180deg,
          rgba(255, 255, 255, 0) 0%,
          rgba(100, 193, 253, 0.2) 100%
        );
        display: inline-block;
      }
      border-radius: 1.5px;
      .block_1 {
        width: 56px;
      }
      .block_2 {
        width: 32px;
      }
      .block_3 {
        width: 450px;
      }
    }
    .title {
      width: 556px;
      font-weight: 700;
      font-size: 14px;
      color: #0b65a1;
      line-height: 22px;
      .search_key {
        margin-right: 24px;
      }
      .conditional_link {
        margin-right: 64px;
      }
    }
    .explain {
      margin-top: 4px;
      width: 556px;
      opacity: 0.5;
      font-weight: 500;
      font-size: 12px;
      color: #0b65a1;
      line-height: 18px;
      .search_key {
        margin-right: 8px;
      }
      .conditional_link {
        margin-right: 26px;
        > span {
          background-color: #fff;
          border-radius: 3px;
          padding: 3px 6px;
          opacity: 0.6;
          font-family: Menlo-Regular;
          font-size: 12px;
          color: #0069ab;
          line-height: 18px;
          margin-right: 4px;
        }
      }
    }
  }
}
.search_left_commit_section {
  width: 208px;
  display: flex;
  width: 208px !important;
}
